package scfg.utils.training_set_filter;

import java.util.ArrayList;
import java.util.List;

import scfg.AlignedSequence;

public class AlignmentFilter {

	public static List<AlignedSequence> getAlignmentFilteredGroup(List<AlignedSequence> sequences) {
		List<AlignedSequence> accepted = new ArrayList<AlignedSequence>();
		for (AlignedSequence seq : sequences) {
			if (seq.getAlignment() != null && seq.getAlignment().length() >= seq.getSequenceLength())
				accepted.add(seq);
		}
		return accepted;
	}

}
